<?php
namespace app\model\study;

use think\Model;

class StudyModel extends Model
{
    protected $name = 'study';
    protected $pk = 'id';

    public static function getInfo($name) {
        $study = self::where("name",$name)->find();
        if ($study == null) return ["msg"=>"无内容"];
        $study["msg"] = "";
        return $study;
    }

    public static function getList() {
        return self::select();
    } 
}